#ifndef RUNNER_H
#define RUNNER_H

#include <hge.h>
#include <hgefont.h>
#include <windows.h>
#include <hgeresource.h>
#include <hgerect.h>
#include "tile.h"


class runner {
private:
	int xSprite,ySprite;
public:
	bool intersection;
	hgeAnimation * anim[6];
    hgeRect * RectTile;
	int keys;
	int lifes;
	int timer_immortality;
	bool ladder;
	bool immortality;
	bool cord;
	int direction;
	bool removed;
	float angle;
	bool OnGround;
	float pointX;
	float pointY;
//fuctions
	runner(float _runnerPositionX,float _runnerPositionY,HTEXTURE _texture,int _runner_number);
	void drawRunner(int n_anim);
    void moveRunner(float _dx,float _dy);
    bool checkIntersection(tile * _tile,int type_of_action);
 int runner_number;
 float runnerPositionX,runnerPositionY;
 bool runnerDown(float dv,int speed);
 bool setRunnerPosition(float _x,float _y);
 bool controlLogic(tile * tile2,int type_of_action2);
 bool checkPointIntersection(hgeRect * Rect);
 //bool runner::checkIntersectionEnemy(enemy * _enemy,int type_of_action);
};





#endif